
import request from '@/utils/request';
import { Result } from './definitions/Result';
import { CarQueue } from './definitions/CarQueue';
import { ResultListCarQueueResponse } from './definitions/ResultListCarQueueResponse';
import { ResultIPageCarQueue } from './definitions/ResultIPageCarQueue';


export class CarQueueShopController {

    static insertUsingPOSTPath: string = "/v1/shop/carQueue";
    /// insert
    async insertUsingPOST(data: CarQueue, headers?: any):  Promise<any> {
      return request(`/v1/shop/carQueue`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static allCheckingListUsingGETPath: string = "/v1/shop/carQueue/allCheckingList";

    async allCheckingListUsingGET( headers?: any) : Promise<ResultListCarQueueResponse> {
      return request(`/v1/shop/carQueue/allCheckingList`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static allWaitingListUsingGETPath: string = "/v1/shop/carQueue/allWaitingList";

    async allWaitingListUsingGET( headers?: any) : Promise<ResultListCarQueueResponse> {
      return request(`/v1/shop/carQueue/allWaitingList`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static getCheckingListUsingGETPath: string = "/v1/shop/carQueue/checkingList";

    async getCheckingListUsingGET( headers?: any) : Promise<ResultListCarQueueResponse> {
      return request(`/v1/shop/carQueue/checkingList`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static pageUsingPOSTPath: string = "/v1/shop/carQueue/page";
    /// page
    async pageUsingPOST(data: CarQueue, headers?: any):  Promise<ResultIPageCarQueue> {
      return request(`/v1/shop/carQueue/page`, {
        method: "POST",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static getWaitingListUsingGETPath: string = "/v1/shop/carQueue/waitingList";

    async getWaitingListUsingGET( headers?: any) : Promise<ResultListCarQueueResponse> {
      return request(`/v1/shop/carQueue/waitingList`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
}